app.service('refundService',['$http','$q','utilService','$cookies',function($http,$q,utilService,$cookies){

    this.updateStatus = function($scope){
        var deferred = $q.defer();
        utilService.api({
            url:$scope.app.domain + 'goods/refund/update',
            data:$scope.goodsRefundVO,
            method:'PUT'
        }).then(function(result){
            deferred.resolve(result);
        });
        return deferred.promise;
    };

    this.update = function($scope){
        var deferred = $q.defer();
        utilService.api({
            url:$scope.app.domain + 'orders/refund/update',
            data:$scope.ordersRefundVO,
            method:'PUT'
        }).then(function(result){
            deferred.resolve(result);
        });
        return deferred.promise;
    };

}]);

